Skip to main content

All Questions

0votes
0answers
98views

How to combine lots of static JavaScript files into one big one using Rails and Propshaft?

I just created a brand new Ruby on Rails 8.0.1 app with Propshaft included. I got the SCSS part working but I can't seem to get the JavaScript part working. Unlike with most other apps, I have only a ...
Tintin81's user avatar
1vote
0answers
83views

Deploying React with Ruby on Rails 7 on Render [closed]

I have an old Ruby on Rails project from 6 years ago that was deployed on Heroku. I haven't touched it in so long that Heroku deleted my account and now I'm looking to deploy it again on Render. I had ...
keyboardwarrior4567's user avatar
0votes
0answers
62views

i18next: loading namespace translation for language en failed Error: non of the backend loaded data

I try to move from sprockets to jsbundling with esbuild in our rails application. Therefore I added all of the important dependencies to the package.json and installed everything yarn. Additionally, ...
Torsten Preuß's user avatar
1vote
2answers
117views

How to properly import a modular JS library in Rails using Importmap (case date-fns)?

In my Rails 8 app I'm using Importmap and I would like to use date-fns in an appropriate manner given only one functionality and a couple of locales from that JS library are needed. Below is what I ...
user502052's user avatar
1vote
1answer
34views

Upgrade Rails-/Webpacker-App with plain JS, VueJS and Stimulus to Importmaps

I want to migrate a Rails project away from Webpacker. It uses different JS-parts: VueJS 2.6, StimulusJS, plain old Javascript with some JQuery. Having used Importmaps in some projects i wonder if ...
Piezo Pea's user avatar
2votes
0answers
74views

tippy.js: "Uncaught ReferenceError: process is not defined" when running with importmaps in Rails 8 with no bundler

I've updated my application to rails 8 running with propshaft and the importmap-rails gem instead of webpacker. I am still using yarn to manage dependencies and pinning them in my importmap. Works ...
dthegnome's user avatar
1vote
1answer
115views

How to parse a dynamic image path in Rails 8 inside Stimulus controller (Popshaft Asset Pipeline)?

I am trying to run a .png sequence inside a canvas with scrolling as the trigger of changing the current displayed image from Ring_00001.png to Ring_00002.png and so on. In Popshaft Rails GitHub page ...
Kelvin Tanjueco's user avatar
0votes
0answers
36views

Draggable Items Disappear or Misalign When Dropped in FullCalendar with StimulusJS in Rails

I am integrating FullCalendar with StimulusJS in a Ruby on Rails application to build an interactive scheduling tool. Most of it works as expected, but I am encountering an issue with draggable events ...
IRay's user avatar
2votes
0answers
212views

How do I get esbuild to stop renaming things?

In upgrading my SpreeCommerce app, I've been trying to use esbuild as the JS bundler. I'm treating the Spree frontend JS files as a vendor directory in the app, trying to get esbuild to bundle the ...
bjorn's user avatar
0votes
0answers
77views

Rails 7.1.3 - my javascript function is not found when invoking window.onload on page load

I have an application on Rails 7.1.3.4, upgraded from Rails 6. I am in the process of converting to using import maps for Javascript that the application uses. I am not using Turbo and Stimulus in ...
Carl Yerkovich's user avatar
0votes
0answers
36views

Rails Admin UI Not Working Properly with Custom JS

I recently added a custom action that requires some custom JavaScript. To do so I added app/assets/javascripts/rails_admin/ui.js //= require ../google_places_autocomplete.js //= require ../...
Sara Fuerst's user avatar
0votes
3answers
61views

Sending Nil value to Rails API in Query String from JS

I'm querying a Searchkick endpoint where I want to find all results where a field is nil. The query in the console Product.search('*', where: { category_id: nil }) correctly returns results. When ...
Romuloux's user avatar
1vote
0answers
49views

How to fix blocked because of a disallowed MIME type (“text/html”) in ruby on rails app(Render)? [duplicate]

** I'm using hotwired/stimulus and importmap_tags for JavaScript in my Ruby on Rails app. In development, everything works fine, but after deploying to Render, my sales view and the product with ...
Harish's user avatar
0votes
0answers
64views

Vite Rails and JS modules in views

I was working on migrating from webpacker to vite and it has been pretty seemless overall, just have one question in regards to using imported JS in a view. Currently have an entrypoint -- lets just ...
fev3r's user avatar
0votes
0answers
42views

Exceution of simple Javascript in Rails app doesn't work

I am new to this topic and online resources didnt help. I am trying to set up a simple button which onClick executes something in JavaScript. I wanted to implement on the front-end to add html to the ...
Julian's user avatar

153050per page
close